﻿namespace ChangchunPulbicServicesImp.Common;

internal static class ValidationHelper
{
    internal static bool IsRoadNameLegal(string roadName)
    {
        return true;
    }

    internal static bool IsPasswordLegal(string password)
    {
        try
        {
            Guard.IsNotNullOrWhiteSpace(password);
            Guard.HasSizeLessThanOrEqualTo(password, 20);
        }
        catch
        {
            return false;
        }
        return true;
    }

    internal static bool IsUsernameLegal(string username)
    {
        return true;
    }

    internal static bool IsKeywordLegal(string keyword)
    {
        return true;
    }

    //internal static bool IsCoordinateLegal(Point point)
    //{
    //    return true;
    //}
}
